package com.jt.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/axios")
@CrossOrigin
public class AxiosControl {
    @GetMapping("/findStr")
    public String findStr(){
        return "123";
    }
    @GetMapping("/getUserById")
    public String findById(Integer id){
        return ""+id;
    }
    @GetMapping("/findUser")
    public User findUser(User user){
        return user;
    }
}
